@import '../../../utils/var';

.form {
  :global {
    .ant-form-item {
      padding-bottom: 12px;
    }
  }
}

.card_container {
  :global {
    .ant-card-body {
      padding-top: 8px;
    }
  }
}

.header_form {
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.image_container {
  display: flex;
  flex-wrap: wrap;
  padding-top: 16px;

  .image_item {
    cursor: pointer;
    overflow: hidden;
    margin-right: 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #ececec;
    transition: all .3s ease;

    &:nth-child(7n) {
      margin-right: 0;
    }

    .image_item_content {
      height: 100%;
      display: flex;
      flex-direction: column;
    }

    .image {
      flex: 1;
      display: flex;
      padding: 16px;
      overflow: hidden;
      position: relative;
      justify-content: center;
      background-color: #f9f9f9;

      img {
        max-width: 100%;
        max-height: 100%;
      }

      &:hover {
        .mask_control {
          visibility: visible;
          transform: translate3d(0, 0, 0);
        }
      }
    }

    .footer {
      color: #666;
      height: 40px;
      padding: 0 16px;
      align-items: center;
      border-top: 1px solid #f2f2f2;

      .image_name {
        font-size: 14px;
        line-height: 40px;
        text-align: center;
        @include textLine(1);
      }
    }

    .mask_control {
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      z-index: 1;
      color: #333;
      visibility: hidden;
      display: flex;
      flex-direction: column;
      transition: all .2s ease;
      background-color: rgb(0, 0, 0, .6);
      transform: translate3d(0, 100%, 0);
    }

    .mask_control_item {
      flex: 1;
      display: flex;
      color: #fff;
      font-size: 12px;
      align-items: center;
      justify-content: center;

      &:hover {
        color: #f50;
        background-color: #000;
      }
    }
  }
}

.text_center {
  text-align: center;
}

.menu_item {
  padding: 4px 0;
  text-align: center;
}

.pagination {
  width: 100%;
  text-align: right;
}
